 let heading = document.getElementsByTagName('h1');

 if (heading.length > 0) {
     heading[0].innerHTML += '(h1)';
 }